<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<t:body title="Лекция">
	<div class="c_block">
		<div class="title">Группы</div>
	    <c:forEach items="${groups}" var="group">
			<div class="row">
				<div class="simple_l">
					<c:url value="/group/${group.id}/edit" var="url"/>
					<a href="${url}">
	                    <c:out value="${group}"/>
	                </a>
				</div>
				<div class="simple_r">
					<c:url value="/group/${group.id}/delete" var="url"/>
	                <a href="${url}">Удалить</a>
				</div>
			</div>
	    </c:forEach>
	    <span class="last">
	    	<c:url value="/group/new" var="url"/>
			<a href="${url}">Создать новую группу</a>
			<c:url value="/user" var="url"/>
			<a href="${url}">К списку пользователей</a>
		</span>
	</div>
</t:body>